import { withInstall } from '@ibiz-template/vue3-util';
import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
import { SearchFormControl } from './search-form';
import { SearchFormProvider } from './search-form.provider';

export const IBizSearchFormControl = withInstall(SearchFormControl, v => {
  v.component(SearchFormControl.name!, SearchFormControl);
  registerControlProvider(
    ControlType.SEARCHFORM,
    () => new SearchFormProvider(),
  );
});
